<link rel="stylesheet" href="{{asset('src/layui/css/layui.css')}}">
<style>
    .red {
        border: 1px solid red;
    }
</style>

<div style=" background-color: #F2F2F2;">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                {{--<div class="layui-card-header">卡片面板</div>--}}
                <div class="layui-card-body">
                    @yield('content')
                </div>
            </div>
        </div>
    </div>
</div>

<script src="{{asset('src/layui/layui.js')}}"></script>
<script>
    //删除
    function del(id, el) {
        //询问框
        layer.confirm('确认删除吗？', {
            btn: ['确认', '取消'] //按钮
        }, function (index) {
            $(el).next('form').trigger('submit')
        });
    }
</script>
@yield('index_script')